package com.manage.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel(value = "鞋购物车对象", description = "这是鞋购物车对象")
@Table(name = "shoppings")
public class Shoppings {

    @ApiModelProperty(hidden = true)
    @Id
    @Column(name = "shopping_id")
    private String shoppingId;

    @ApiModelProperty(value = "用户id", name = "userId", required = true)
    @Column(name = "user_id")
    private String userId;

    @ApiModelProperty(value = "鞋id", name = "shoesId", required = true)
    @Column(name = "shoes_id")
    private String shoesId;

    @ApiModelProperty(hidden = true)
    @Column(name = "create_time")
    private String createTime;

    /**
     * 获取购物车id
     *
     * @return shopping_id - 购物车id
     */
    public String getShoppingId() {
        return shoppingId;
    }

    /**
     * 设置购物车id
     *
     * @param shoppingId 购物车id
     */
    public void setShoppingId(String shoppingId) {
        this.shoppingId = shoppingId;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取鞋id
     *
     * @return shoes_id - 鞋id
     */
    public String getShoesId() {
        return shoesId;
    }

    /**
     * 设置鞋id
     *
     * @param shoesId 鞋id
     */
    public void setShoesId(String shoesId) {
        this.shoesId = shoesId;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}